import request from '@/utils/request'

// 发送 验证码 的接口
export const sendSms = (mobile)=>request({
  url:`/v1_0/sms/codes/${mobile}`
})
// 登录接口
export const Login = (data)=>request({
  method:'POST',
  url:'/v1_0/authorizations',
  data
})

export const personal = () => request({
  method:'GET',
  url:'/v1_0/user',
  // headers:{
  //   Authorization :`Bearer ${store.state.user.token}`
  // }
})